const Router = require('koa-router');
const tool = require("../../tools/tool");
const router = new Router();

// 删除
router.post('/bill/getBillRule', async ctx => {
    let body = ctx.request.body
    let whichPage = body.whichPage
    if (whichPage) {
        let page = await tool.pageSets(ctx)
        return ctx.suc('', page.pageRule)
    }

    return ctx.suc('', [])
})

module.exports = router;